package metier;

import hibernate.GenericRepository;


public class BaseBusiness<T,R extends GenericRepository<T, ID>, ID>  {

	R _repository;

	public  BaseBusiness(){	
	}

	public BaseBusiness(R _repository) {
		this._repository = _repository;
	}

	public void save(T obj){
		_repository.Save(obj);
	}
	public void SaveOrUpdate(T obj) {
		_repository.SaveOrUpdate(obj);
	}

	public void Update(T obj) {
		_repository.Update(obj);
	}

	public void Delete(T obj) {	
		_repository.Delete(obj);
	}

}
